
//  Created by 莫瑞权 on 2022/5/19.
//  Copyright © 2022 Talkfun. All rights reserved.
//

import UIKit

  //主讲模式

public class TFKeyNoteModeLive: UIViewController {

    @objc let videoArea = TF1to16VideoArea()
    @objc let keynoteView = TFkeyNoteView()

    public override func viewDidLoad() {
        super.viewDidLoad()


    }
    //2.视频区域
   @objc func addvideoArea()
    {
        var videoAreaHeight:CGFloat = 80+8
        var videoAreaWidth:CGFloat  = 0.0
        var  videoAreaY:CGFloat = 0.0
        
        //ipad
        
        if (UIDevice.current.userInterfaceIdiom == .pad)
        {
            videoAreaHeight = 139+10
            
        }
         videoAreaWidth =  self.view.frame.size.width
         videoAreaY     =   0
        
        let videoAreaX:CGFloat = 0
        

        self.videoArea.isHidden = true
        self.videoArea.frame = CGRect(x: videoAreaX, y: videoAreaY, width: videoAreaWidth, height: videoAreaHeight)
        
        self.videoArea.backgroundColor = UIColor(red: 19/255.0, green: 21/255.0, blue: 25/255.0, alpha: 1)
  
        self.view.addSubview(self.videoArea)
        self.addKeynoteView()
    }

    func addKeynoteView()

    {
        
        self.keynoteView.backgroundColor = UIColor(red: 28/255.0, green: 31/255.0, blue: 35/255.0, alpha: 1)
       
        self.view.addSubview(self.keynoteView)
    }


}
